package com.summer.framework.common.enums;

/**
 * @auther: 杨杰
 * @date: 2019/5/17 14:54
 * @description:
 */
public enum ErrorStatus {
    NOT_FOUND(40000, "无法找到对应数据"),
    USER_NAME_NOT_FOUND(40001, "用户名不存在"),
    USER_NAME_ALREADY_FOUND(40002, "用户名已存在"),
    PAREMETER_NOT_FOUND(40004, "参数错误");


    private final int status;
    private final String message;

    private ErrorStatus(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
